package com.kedou.sdk.params;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/6/7 0007.
 */

public class AccountInfosRequestParams extends BaseRequestParams implements Parcelable {

    private static final String SERVICE = "account";

    /**
     * 绑定的手机号码
     */
    private String mobile;

    /**
     * 手机验证码
     */
    private String code;
    private String sms_type = "get_code_account";
    private String type ="account_login";



    public AccountInfosRequestParams(String phone, String verify) {
        this.mobile = phone;
        this.code = verify;
    }

    @Override
    public String getServiceString() {
        return SERVICE;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getSms_type() {
        return sms_type;
    }

    public void setSms_type(String sms_type) {
        this.sms_type = sms_type;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.mobile);
        dest.writeString(this.code);
        dest.writeString(this.sms_type);
        dest.writeString(this.type);
    }

    protected AccountInfosRequestParams(Parcel in) {
        super(in);
        this.mobile = in.readString();
        this.code = in.readString();
        this.sms_type = in.readString();
        this.type = in.readString();
    }

    public static final Creator<AccountInfosRequestParams> CREATOR = new Creator<AccountInfosRequestParams>() {
        @Override
        public AccountInfosRequestParams createFromParcel(Parcel source) {
            return new AccountInfosRequestParams(source);
        }

        @Override
        public AccountInfosRequestParams[] newArray(int size) {
            return new AccountInfosRequestParams[size];
        }
    };
}
